import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqIntHelper } from "../Public/SeqIntHelper";
import { SEntityId } from "../Public/SEntityId";
import { SPublicMiniPlayer } from "../Public/SPublicMiniPlayer";
type int = number;
//class STreasureHunterDeadInfo
    
    export  class STreasureHunterDeadInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new STreasureHunterDeadInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.killerEntityId.__write(arg1);
            arg1.writeBool(this.isRecapture);
            SeqIntHelper.write(arg1, this.itemCodes);
            this.publicMiniplayer.__write(arg1);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.killerEntityId = new SEntityId();
            this.killerEntityId.__read(arg1);
            this.isRecapture = arg1.readBool();
            this.itemCodes = SeqIntHelper.read(arg1);
            this.publicMiniplayer = new SPublicMiniPlayer();
            this.publicMiniplayer.__read(arg1);
            return;
        }

        public /* const */_type: int=12059;

        public /* var */killerEntityId: SEntityId;

        public /* var */isRecapture: Boolean;

        public /* var */itemCodes: Array<any>;

        public /* var */publicMiniplayer: SPublicMiniPlayer;

        public static /* var */_regist: STreasureHunterDeadInfo;
    }

            STreasureHunterDeadInfo._regist = new STreasureHunterDeadInfo(true);
        